package main

import (
    "fmt"
)

type Hello struct {
    name string
}

func (h Hello) SayHello() {
    fmt.Printf("Hello %s\n", h.name)
}

func main() {
    h := Hello{"golang"}
    h.SayHello()
    SayHello(h)
}
